package service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import dao.UserDao;
import dao.UserDaoImpl;
@Service
public class UserManagerImpl{
	@Qualifier(value="udPlus")
	@Autowired
	private UserDao ud;
	public UserManagerImpl() {
		System.out.println("usermanagerimpl contructor.....");
	}
	
	public void setUd(UserDao ud) {
		this.ud = ud;
	}

	public void regist(){
		System.out.println("userManager regist......");
		ud.addUser();
	}
}
